<?php

class DefaultController extends Controller
{
	public $layout='//layouts/dashboard';

	public function actionIndex()
	{
		$categories = Gadgetcategory::model()->getAll();
		
		
		$this->render('index',array(
			'categories'=>$categories
		));
	}
}